home *** CD-ROM | disk | FTP | other *** search
/ Aminet 48 / Aminet 48 (2002)(GTI - Schatztruhe)[!][Apr 2002].iso / Aminet / text / edit / vim60src.lha / Vim / vim60 / src / testdir / test48.in < prev    next >
Encoding:
Text File  |  2001-09-18  |  1.4 KB  |  75 lines

  1. This is a test of 'virtualedit'.
  2.  
  3. STARTTEST
  4. :so small.vim
  5. :set noswf
  6. :set ve=all
  7. -dgg
  8. :"
  9. :"   Insert "keyword keyw", ESC, C CTRL-N, shows "keyword ykeyword".
  10. :"    Repeating CTRL-N fixes it. (Mary Ellen Foster)
  11. 2/w
  12. C
  13. :"
  14. :"   Using "C" then then <CR> moves the last remaining character to the next
  15. :"    line.  (Mary Ellen Foster)
  16. j^/are
  17. Care belong to vim
  18. :"
  19. :"   When past the end of a line that ends in a single character "b" skips
  20. :"    that word.
  21. ^$15lbC7
  22. :"
  23. :"   Make sure 'i' works
  24. $4li<-- should be 3 ' '
  25. :"
  26. :"   Make sure 'C' works
  27. $4lC<-- should be 3 ' '
  28. :"
  29. :"   Make sure 'a' works
  30. $4la<-- should be 4 ' '
  31. :"
  32. :"   Make sure 'A' works
  33. $4lA<-- should be 0 ' '
  34. :"
  35. :"   Make sure 'D' works
  36. $4lDi<-- 'D' should be intact
  37. :"
  38. :"   Test for yank bug reported by Mark Waggoner.
  39. :set ve=block
  40. ^2w3jyGp
  41. :"
  42. :" Test "r" beyond the end of the line
  43. :set ve=all
  44. /^"r"
  45. $5lrxa<-- should be 'x'
  46. :"
  47. :"   Test to make sure 'x' can delete control characters
  48. :set display=uhex
  49. ^xxxxxxi[This line should contain only the text between the brackets.]
  50. :set display=
  51. :"
  52. :"   Test for ^Y/^E due to bad w_virtcol value, reported by
  53. :"   Roy <royl@netropolis.net>.
  54. ^Olilili   <-- should show the name of a noted text editor
  55. ^olilili   <-- and its version number-dd
  56. :"
  57. :wq! test.out
  58. ENDTEST
  59. keyword keyw
  60. all your base are belong to us
  61. 1 2 3 4 5 6
  62. 'i'
  63. 'C'
  64. 'a'
  65. 'A'
  66. 'D'
  67. this is a test
  68. this is a test
  69. this is a test
  70. "r"
  71. absd
  72. abcv6efi.him0kl
  73.  
  74.  
  75.